export const formItems = [
  {
    colSpan: 4,
    type: 'dateTime',
    name: '日期',
    attr: {
      prop: 'time',
      startDt: 'startDt',
      endDt: 'endDt',
      type: 'date',
      placeholder: '查询日期',
      rangeSeparator: '至',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间'
    }
  },
  {
    colSpan: 4,
    type: 'mSelect',
    name: '类型',
    attr: {
      prop: 'type',
      placeholder: '类型',
      clearable: false
    },
    serverOption: {
      data: [
        { label: '紧急', value: '1' },
        { label: '被指派', value: '2' }
      ]
    }
  },
  {
    colSpan: 4,
    type: 'mSelect',
    name: '状态',
    attr: {
      prop: 'status',
      placeholder: '状态',
      clearable: false
    },
    serverOption: {
      data: [
        { label: '全部', value: '1' },
        { label: '待回复', value: '2' },
        { label: '已回复', value: '3' }
      ]
    }
  },
  {
    colSpan: 5,
    type: 'mSelect',
    name: '是否抄送',
    attr: {
      prop: 'chaosong',
      placeholder: '是否抄送',
      clearable: false
    },
    serverOption: {
      data: [
        { label: '是', value: '1' },
        { label: '否', value: '2' }
      ]
    }
  }
]
export const tableColoums = [
  {
    attrs: {
      label: '序号',
      type: 'index',
      width: 60,
      align: 'center'
    },
    defaultSlot: {
      default: 'index'
    }
  },
  {
    attrs: {
      label: '发送人',
      prop: 'email',
      minWidth: 60,
      showOverflowTooltip: true,
      align: 'center'
    },
    defaultSlot: {
      header: 'email'
    }
  },
  {
    attrs: {
      label: '标题',
      minWidth: 90,
      showOverflowTooltip: true,
      prop: 'subject'
    },
    defaultSlot: {
      header: 'subject'
    }
  },
  {
    attrs: {
      label: '正文',
      minWidth: 120,
      showOverflowTooltip: true,
      prop: 'body'
    }
  },
  {
    attrs: {
      label: '时间',
      width: 100,
      showOverflowTooltip: true,
      prop: 'date',
      align: 'center'
    },
    defaultSlot: {
      header: 'date'
    }
  },
  {
    attrs: {
      label: '状态',
      width: 60,
      showOverflowTooltip: true,
      prop: 'status',
      align: 'center'
    },
    defaultSlot: {
      default: 'status'
    }
  },
  {
    attrs: {
      label: '回复内容',
      minWidth: 100,
      showOverflowTooltip: true,
      prop: 'reply'
    }
  },
  {
    attrs: {
      label: '操作',
      width: 140,
      showOverflowTooltip: true,
      prop: 'type_name'
    },
    defaultSlot: {
      default: 'handler'
    }
  }
]
